home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore 64 Scene Diskmags Assortment
/
Mega_magazine_1_19xx_Venturi.d64
/
miasto v1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
5KB
|
240 lines
1 clr
3 a=100000
10 poke53280,0:poke53281,0:poke646,1:printchr$(147)
20 printchr$(158)"piotr stachowiak wita w grze pod tytu\em
21 [153]"
22 printchr$(30)" m i a s t o
23 [153]"
40 print"
41 [153]"
42 print"
43 [153]"
44 print"
45 [161]a$:[139]a$[178]""[167][137]45
49 ak[178]ak[170]1
50 [153][199](147)[199](5)
51 [139]ak[178]25[167][137]900
60 [153]" ,
61 print"ktora opcje wybierasz ???
62 [153]" '
63 print"
64 [153]" ,
65 print" budowa domow - f1
66 [153]"
67 print" fabryki - f2
68 [153]"
69 print" szko\y - f3
70 [153]"
71 print" policja - f4
72 [153]"
73 print" pogotowie - f5
74 [153]"
75 print" ludzie - f6
76 [153]"
77 print" bilans - f7
78 [153]"
79 print" koniec tury - f8
80 [153]"
81 print"
82 [153]"masz "a"$ tura "ak
83 [153]"
85 geta$:ifa$=""thengoto85
86 ifa$=chr$(133)thengoto100
87 ifa$=chr$(137)thengoto160
88 ifa$=chr$(134)thengoto250
89 ifa$=chr$(138)thengoto330
90 ifa$=chr$(135)thengoto460
91 ifa$=chr$(139)thengoto600
92 ifa$=chr$(136)thengoto740
93 ifa$=chr$(140)thengoto800
94 goto50
95 :
96 :
97 :
98 :
99 :
100 printchr$(147):aa=0
110 print" ,
111 [153]"ile budujesz domow ? (1 dom=100$)
120 input aa
125 if aa<=0thengoto50
130 if aa*100>athengoto150
139 print" ,"
140 print"zbudowa\es "aa"domow":ab=ab+aa
141 a=a-aa*100
142 getb$:ifb$=""thengoto142
143 goto50
150 print"masz za ma\o kasy na tyle domow"
151 getb$:ifb$=""thengoto151
155 goto 50
160 printchr$(147):ad=0
169 print" [160]
170 [153]"ile budujesz fabryk ? (1 fabryka=250$)"
175 [133]ad
180 [139]ad[179][178]0[167][137]50
190 [139]ad[172]250[177]a[167][137]230
200 [153]"
205 print"zbudowa\es "ad"fabryk":ac=ac+ad
210 a=a-ad*250
215 getb$:ifb$=""thengoto215
220 goto50
230 print"masz za ma\o kasy na tyle fabryk"
240 getb$:ifb$=""thengoto240
245 goto50
250 printchr$(147):af=0
253 print" ,
255 [153]"ile budujesz szko\ ? (1 szko\a=150$)
260 inputaf
270 ifaf=<0thengoto50
275 ifaf*150>athengoto310
280 print" , "
285 print"zbudowa\es "af" szko\":ae=ae+af
290 a=a-af*150
295 getb$:ifb$=""thengoto295
300 goto50
310 print"masz za ma\o kasy na tyle szko\"
315 getb$:ifb$=""thengoto215
320 goto50
330 printchr$(147)
340 ifa<150thengoto440
343 ifag=0thengoto370
345 print"
350 [153]"masz juz policje - jedna policja starczy
355 getb$:ifb$=""thengoto355
360 goto50
370 printchr$(147)
375 print"
380 [153]"policja kosztuje 150$. kupujesz ? (t/n)
390 getc$:ifc$=""thengoto390
395 ifc$="t"thengoto420
400 ifc$="n"thengoto50
410 goto50
420 print"kupi\es policje ":ag=1:a=a-150
425 getb$:ifb$=""thengoto425
430 goto50
440 print"masz za ma\o kasy na policje"
445 getb$:ifb$=""thengoto445
450 goto50
460 printchr$(147)
470 ifa<150thengoto570
473 ifah=0thengoto500
475 print"
480 [153]"masz juz pogotowie - jedno starczy
485 getb$:ifb$=""thengoto485
490 goto50
500 printchr$(147)
505 print"
510 [153]"pogotowie kosztuje 100$.kupujesz ? (t/n)
520 getd$:ifd$=""thengoto520
525 ifd$="t"thengoto550
530 ifd$="n"thengoto50
540 goto50
550 print"kupi\es pogotowie ":ah=1:a=a-100
555 getb$:ifb$=""thengoto555
560 goto50
570 print"masz za ma\o kasy na pogotowie"
585 getb$:ifb$=""thengoto585
590 goto50
600 printchr$(147):aj=0
615 print" "
620 print"ile sprowadzasz ludzi ?"
625 inputaj
630 ifaj+ai>ab*100thengoto680
640 print" ,"
650 print"sprowadzi\es "aj"ludzi":ai=ai+aj
660 getb$:ifb$=""thengoto660
670 goto50
680 print"
690 [153]"niestarczy ci domow na tyle ludzi !!!"
695 [153]" ,"
700 [153]"kup wiecej domow"
710 [153]" '"
720 [161]b$:[139]b$[178]""[167][137]720
730 [137]50
740 [153][199](147)
750 [153]"
751 print" posiadasz :
752 [153]"
753 print" "a"$
754 [153]"
755 print" "ab"domow
756 [153]"
757 print" "ac"fabryk
758 [153]"
759 print" "ae"szko\
760 [153]"
761 print" "ai"ludzi
762 [153]"
765 ifag=1thenprint" policje
766 [153]"
767 ifah=1thenprint" pogotowie
768 [153]"
769 print"
770 [153]"
771 print"
772 [153]"
780 getb$:ifb$=""thengoto780
790 goto50
800 printchr$(147)
805 ifai=<100thengoto50
810 ifai<ab*100thena=a+(ab*100)-ai
820 ifai<ac*200thena=a+(ac*200)-ai
830 ifac*100<aithena=a-(ac*100)-ai
840 ifac<ai*0.25thena=a-ai*0.25
850 ifag=0thena=a-50
860 ifah=0thena=a-50
870 goto49
900 al=al+a
910 al=al+(ab*100)
920 al=al+(ac*250)
930 al=al+(ag*150)
940 al=al+(ah*100)
950 al=al+(ae*150)
970 ifal<100000thengoto1020
980 ifal>100000<200000thengoto1060
990 ifal>200000<1000000thengoto1100
1000 ifal>100000thengoto1140
1020 printchr$(147)
1030 print"
1031 [153]"cieniutko! po sprzedaniu zgromadzonego"
1032 [153]" przez ciebie majatku masz tylko"
1033 [153]" '
1034 print" "al"$
1035 [153]" to mniej niz dosta\es kasy na poczatku"
1036 [153]"zacznij od poczatku - space '"
1040 [161]b$:[139]b$[178]""[167][137]1040
1050 [137]1
1060 [153][199](147)
1070 [153]"
1071 print"nawet niezle zgromadzi\es :"al"$
1072 [153]" . ,
1073 print"to wiecej niz dosta\es na poczatku !!!"
1074 print" ' '
1075 [153]"
1076 print"zacznij jeszcze raz - space
1080 [161]b$:[139]b$[178]""[167][137]1080
1090 [137]1
1100 [153][199](147)
1110 [153]"
1111 print" - brawo ! masz na kacie "al"$
1112 [153]"
1113 print"to bardzo dobry rezultat gratulacje !!!"
1114 print"
1115 [153]"zacznij jeszcze raz - space"
1116 [153]"
1120 getb$:ifb$=""thengoto1120
1130 goto1
1140 printchr$(147)
1150 print"brawo !!! brawo !!! brawo !!! brawo!!!
1151 [153]"
1152 print"zgromadzi\es "al"$ !!!
1153 [153]" ,
1154 print"to fantastyczny wynik jestes mistrzem !"
1155 print"
1156 [153]"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1157 print"
1158 [153]"zagraj jeszcze raz - space"
1159 [153]"
1160 getb$:ifb$=""thengoto1160
1170 goto1